<template>
  <div>
    <usermanagement
      v-if="storedUsername === '管理员' ? true : false"
    ></usermanagement>
    <EquipmentApplication
      v-if="storedUsername === '普通用户' ? true : false"
    ></EquipmentApplication>
  </div>
</template>

<script setup>
import usermanagement from "@/components/usermanagement.vue";
import EquipmentApplication from "@/components/EquipmentApplication.vue";
const storedUsername = sessionStorage.getItem("rname");
</script>

<style lang="scss" scoped></style>
